package com.etc.service;

import java.util.ArrayList;

import com.etc.dao.EquipmentDAO;
import com.etc.entity.Equipment;

public class EquipmentService {

	EquipmentDAO equipmentDao = new EquipmentDAO();
	//添加一件装备
	public void addEquipment() {
		Equipment equip = new Equipment("白玉龙冠", 0, 700, 0, 0, 500, 0, "头部");
		equipmentDao.addEquipment(equip);
	}
	//
	public Equipment findEquipById(String equipId) {
		return equipmentDao.findEquipById(equipId);
	}
	
	public ArrayList<Equipment> findEquipByType(String type) {
		return equipmentDao.findEquipByType(type);
	}
	
	//测试
	public static void main(String[] args) {
		EquipmentService equipService = new EquipmentService();
//		equipService.addEquipment();
//		equipService.findEquipById();
	}
}


